﻿using System.Collections.Generic;
using System.Collections.Specialized;

namespace Castle.MonoRail.ExtensionMethods.Helpers {
    public static class NameValueCollectionExtensions {
        public static IEnumerable<KeyValuePair<string, string>> AsEnumerable(this NameValueCollection nv) {
            foreach (string k in nv) {
                yield return new KeyValuePair<string, string>(k, nv[k]);
            }
        }
    }
}